package com.wenwu.dao;

import com.wenwu.common.bean.RelicsLiterature;
import com.wenwu.common.bean.RelicsLiteratureExample;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface RelicsLiteratureMapper {
    int countByExample(RelicsLiteratureExample example) throws SQLException;

    int deleteByExample(RelicsLiteratureExample example) throws SQLException;

    int deleteByPrimaryKey(Integer literatureId) throws SQLException;

    int insert(RelicsLiterature record) throws SQLException;

    int insertSelective(RelicsLiterature record) throws SQLException;

    List<RelicsLiterature> selectByExampleWithBLOBs(RelicsLiteratureExample example) throws SQLException;

    List<RelicsLiterature> selectByExample(RelicsLiteratureExample example) throws SQLException;

    RelicsLiterature selectByPrimaryKey(Integer literatureId) throws SQLException;

    int updateByExampleSelective(@Param("record") RelicsLiterature record, @Param("example") RelicsLiteratureExample example) throws SQLException;

    int updateByExampleWithBLOBs(@Param("record") RelicsLiterature record, @Param("example") RelicsLiteratureExample example) throws SQLException;

    int updateByExample(@Param("record") RelicsLiterature record, @Param("example") RelicsLiteratureExample example) throws SQLException;

    int updateByPrimaryKeySelective(RelicsLiterature record) throws SQLException;

    int updateByPrimaryKeyWithBLOBs(RelicsLiterature record) throws SQLException;

    int updateByPrimaryKey(RelicsLiterature record) throws SQLException;
    
    List<RelicsLiterature> selectAll() throws SQLException;
    
    /**
	 * 根据主键批量删除数据
	 * @param keyList
	 * @return
	 */
	int deleteInfoByKey(List<String> keyList) throws SQLException;
}